package com.wmyg.antifake.service;

import com.wmyg.antifake.entity.Order;
import org.springframework.data.domain.Page;

import java.util.Date;

public interface OrderService {

    Integer createOrder(Order order, Integer recordId, Integer addressId, String username);

    Order getOrder(Integer orderId);

    String wxPayPre(Integer orderId, String clientIp);

    String aliPayPre(Integer orderId);

    Page<Order> getOrderPage(String username, Integer index, Date startTime, Date endTime, Integer state);

    Boolean cancelOrder(Integer orderId);

}
